﻿namespace HZY.Core.EntityFramework.Aop;

[AttributeUsage(AttributeTargets.Property)]
public class DictAttribute : Attribute
{
    public DictAttribute(string dictTableName, string dictCode, string dictName)
    {
        DictTableName = dictTableName;
        DictCode = dictCode;
        DictName = dictName;

    }

    /// <summary>
    /// 字典表名称
    /// </summary>
    public string DictTableName { get; set; }

    /// <summary>
    /// 字典表主键
    /// </summary>
    public string DictCode { get; set; }

    /// <summary>
    /// 字典表显示字段
    /// </summary>
    public string DictName { get; set; }

    /// <summary>
    /// excel标题
    /// </summary>
    public string ExcelTitle { get; set; }

}
